<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'initUser.php');	
	//$powder_min = 5 ;
	//include(ROOTPATH .'include'. DS .'checkPowder.php');
	include "header.php";
?>
<script type="text/javascript" src="<?php echo JS_PATH;?>taskAttend.js"></script>
</head>
<body>

<?php require('top.php'); ?>
<div class="pos">	
    <div class="contents">
    	<?php require('nav.php'); ?>   
            <h2 class="title">
            <a href="./"><?php echo lang_index;?></a> &gt;
            <a href="<?php echo WEB_ROOT_PATH;?>?option=task&id=<?php echo $idCode; ?>"><?php echo htmlShow($show['name']); ?></a> &gt; <?php echo $navigation -> getTitle();?>
        <?php
            if( $task -> taskCreaterView($user_id)){
			
				if($isTimeout){
			?>
				<span>
				<a href="<?php echo WEB_ROOT_PATH;?>?option=taskInviteList&id=<?php echo $idCode;?>" target="_blank"><?php echo lang_view_contribute_works;?> (<?php echo $InviteLen;?>)</a>
				
				<a class="taskInvite" href="<?php echo WEB_ROOT_PATH;?>?option=taskInvite&id=<?php echo $idCode;?>"><?php echo lang_send_assess_invite;?></a></span>
			<?php }else{?>
				<span><a><?php echo lang_send_assess_invite;?> (<?php echo $show['timeEnd'] .' '.lang_cantnot_send_assess_invite_title;?>)</a></span>
			<?php }
			}
		?>
        </h2>
        <div id="taskAttendList" class="mediaList">
			<?php
			echo $task -> getAttendLists($id);
			?>
        </div>
        <h2 class="title">
		<?php
            if( $task -> taskCreaterView($user_id)){
			
				if($isTimeout){
			?>
				<span>
				<a href="<?php echo WEB_ROOT_PATH;?>?option=taskInviteList&id=<?php echo $idCode;?>" target="_blank"><?php echo lang_view_contribute_works;?> (<?php echo $InviteLen;?>)</a>
				
				<a class="taskInvite" href="<?php echo WEB_ROOT_PATH;?>?option=taskInvite&id=<?php echo $idCode;?>"><?php echo lang_send_assess_invite;?></a></span>
			<?php }else{?>
				<span><a><?php echo lang_send_assess_invite;?> (<?php echo $show['timeEnd'] .' '.lang_cantnot_send_assess_invite_title;?>)</a></span>
			<?php }
			}
		?>
        </h2>
    </div><!-- .contents-->
</div>

<?php require('footer.php'); ?>

</body>
</html>
